<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var flag = true; //flag布尔型
        var flag1 = false; //flag1 布尔型
        console.log(flag + 1); //true 参与加分运算当1来看
        console.log(flag1 + 1); //flag1 参与加分运算当0来看

    </script>
</head>
<body>
    
</body>
</html>